package com.interview.spring.boot;

import com.interview.spring.circularReference.ClassA;
import com.interview.spring.circularReference.ClassB;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName: HelloDependency
 * @Author: DonnieChen
 * @Date: 2022/1/26 23:04
 * @Description: no
 */
public class HelloDependency {

    /**
     * create by: donnie
     * description: TODO
     * create time: 2022/1/26 23:11
     *
      * @Param: null
     * @return
     */
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        ClassA a = applicationContext.getBean("a", ClassA.class);
        ClassB b = applicationContext.getBean("b", ClassB.class);
    }
}
